package com.zyx.drools.springweb.controller;

import com.zyx.drools.springweb.service.RuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zyx
 * @since 2022/7/9 09:18
 */
@Controller
@RequestMapping("/hello")
public class HelloController {
    @Autowired
    private RuleService ruleService;

    @RequestMapping("/rule")
    public String rule(){
        ruleService.rule();
        return "OK";
    }

}
